﻿/*公用样式*/
.wrapper {
    background: url('../images/page_bg.png');
    background-size: cover;
    width: 100%;
    min-height: 100vh;
    height: auto;
}

#nav_main {
    position: fixed;
    left: 0px;
    bottom: 0px;
    z-index: 9999;
    background: url('../images/nav_main_bg_60.png') center center;
    width: 100%;
    height: 60px;
}

.nav_item {
    height: 60px;
    width: 60px;
    display: block;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

#a_index {
    background-image: url('../images/btn_index_focus.png');
}

#a_vote {
    background-image: url('../images/btn_vote.png');
    margin: 0 auto;
}

#a_rule {
    background-image: url('../images/btn_rule.png');
}

.left {
    float: left;
}

.right {
    float: right;
}

.hidden {
    display: none;
}

.main {
    width: 100%;
    height: auto;
}

/*index样式*/
#main_index {
    background: url('../images/index_bg.png') center center no-repeat;
    background-size: 90% auto;
    min-height: 100vh;
}

#main_rule {
    padding-top: 10vh;
    width: 100%;
    margin: 0 auto;
    height: 90vh;
}

#main_rule p {
    line-height: 30px;
    color: #ffffff;
}

.tab_title li {
    display: inline-block;
    line-height: 50px;
    height: 50px;
    width: 50%;
    background-color: #fff;
    color: #333333;
    float: left;
    text-align: center;
    border-bottom: 2px solid white;
}

.tab_title li.active {
    border-bottom-color: red;
    color: red;
    /*background-color: #ffe5cc;*/
}

.tab_title li:active {
    background-color: #ffe5cc;
}

.tab_content {
    color: white;
    font-size: 1rem;
    line-height: 1.2rem;
}

p#rule_title {
    display: block;
    height: 30px;
    background: url('../images/rule_title_bg.png') center center;
    background-repeat: no-repeat;
    text-align: center;
    font-style: italic;
    color: #8732d5;
    font-size: 1.2rem;
}

#list_rules {
    margin: 20px;
    font-size: 1rem;
    color: #58129b;
}



/*瀑布流布局*/
.waterfall {
    column-count: 2;
    column-gap: 0;
    width: 100%;
}

.item {
    box-sizing: border-box;
    break-inside: avoid;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.item-content {
    /*display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;*/
    width: 100%;
    height: auto;
    box-sizing: border-box;
    padding: 3px;
    background-color: #fff;
}

.item-cover {
    width: 100%;
    height: auto;
}

.item-bar {
    width: 100%;
    background-color: rgba(255,255,255,1.0);
    height: 2.5rem;
    line-height: 2.5rem;
    color: red;
}

.item-bar span {
    display: inline-block;
    float: left;
    font-size: 1rem;
}

.item-bar .thumbup_total {
    padding-left: 5%;
    width: 60%;
    border-top: 1px solid #e1e1e1;
}

.item-bar .thumbup_btn {
    text-align: center;
    float: right;
    width: 35%;
    background-color:red;
    color: white;
}

.thumbup_btn:active {
    background-color: white;
    color: red;
}

@media only screen and (min-width: 768px) {
    #main_index {
        background-size: 70% auto;
    }
}

@media screen and (max-width: 360px) {
    #main_index {
        background-size: 80% auto;
    }

    .item-bar{
        height: 1.5rem;
        line-height: 1.5rem;
    }

    .tab_title li {
        line-height: 1.8rem;
        height: 1.8rem;
        font-size: 0.75rem;
    }

    p#rule_title{
        font-size: 1rem;
    }
}
